﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AdminTimeAdd.aspx.cs" Inherits="admin_AdminTimeAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
     <style type="text/css">
        .content-box{width:264px;}
    </style>
    <script type="text/javascript">
        YUI({
            modules: {
                'trip-calendar': {
                    fullpath: '<%=BSUtility.mainUrl + "Scripts/trip-calendar.js"%>',
                    type: 'js',
                    requires: ['trip-calendar-css']
                },
                'trip-calendar-css': {
                    fullpath: '<%=BSUtility.mainUrl+ "Styles/trip-calendar.css"%>',
                    type: 'css'
                }
            }
        }).use('trip-calendar', function (Y) {

            var oCal = new Y.TripCalendar({
                count: 1,
                isHoliday: false,
                triggerNode: '#MainContent_startTime',
                finalTriggerNode:'#MainContent_endTime'

            });
            oCal.on('dateclick', function (e) {
                this.getCurrentNode().setAttribute('Text', e.date);
            });

            //显示日历时自定义事件
            oCal.on('show', function () {
                var v = this.getCurrentNode().getAttribute('data-date');
                this.set('date', v || new Date);
                this.set('selectedDate', v).render();
            });

        });
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
 <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">添加时间</strong> / <small>add time</small></div>
    </div>
    <div class="am-tabs am-margin" data-am-tabs="">
       
       <div class="am-tabs-bd" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
         <div class="am-tab-panel am-fade" id="tab2">
                <div class="am-form">
                     <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            考试类型
                        </div>
                                    <div class="am-u-sm-12 am-u-md-4">
                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Width="250px"  Style="display: none;" ID="EmID" runat="server">
                </asp:DropDownList>
            </div>
                                       <small>请选择</small>  
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            考试年份
                        </div>
                         <div class="am-u-sm-8 am-u-md-10">
                                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="DropDownList1" runat="server">
                                    <asp:ListItem >2016</asp:ListItem>
                        
                                    <asp:ListItem>2017</asp:ListItem>
                                    
                                    <asp:ListItem>2018</asp:ListItem>
                                   
                                </asp:DropDownList>
                            </div>
                    </div>

                    
                    <div class="am-g am-margin-top">
                        <div class="am-form-group">
                            <div class="am-u-sm-4 am-u-md-2 am-text-right">当年次数</div>
                            <div class="am-u-sm-8 am-u-md-10">
                                <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="ltFrom" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                   <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            开始时间
                        </div>
                       <div class="am-u-sm-12 am-u-md-4">
                    <asp:TextBox runat="server" CssClass="am-input-sm"  
                        Style="display: inline-block; float: left; background-color: #fff; cursor: text;" ID="startTime" placeholder="开始时间" />
                   
                </div>
                        
                            <small>请选择，填写请注意格式</small>
                        
                    </div>
                   
                </div>
                        <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                           结束时间
                        </div>
                        <div class="am-u-sm-12 am-u-md-4">
                    
                    <asp:TextBox runat="server" ID="endTime" placeholder="结束时间" CssClass="am-input-sm"
                        Style="display: inline-block; float: left; background-color: #fff;  cursor: text;" />
                </div>
                        
                            <small>请选择，填写请注意格式</small>
                        </div>
 <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            考试全称
                        </div>
                                    <div class="am-u-sm-8 am-u-md-10">
                <asp:TextBox runat="server" ID="EmAllName" type="text" class="am-input-sm"/>
               <small>*注：填写字符</small>
            </div>
                                       
                          
                    </div>
                    <div class="am-g am-margin-top">
                       <div class="am-u-sm-4 am-u-md-2 am-text-right">
                           允许考试年级
                        </div>
                        <div class="am-u-sm-12 am-u-md-4">
                            <asp:TextBox runat="server" ID="txtEnterYear" type="text" class="am-input-sm" required="required"/>
                        </div>
                        <small>*必填</small>
                    </div>
                    <div class="am-margin">
                        <asp:Button runat="server" style="margin-left:240px;"  CssClass="am-btn am-btn-primary am-btn-default" Text="添 加" ID="addStudent" OnClick="addStudent_Click" />
                        <asp:Label runat="server" ID="addTips" Visible="false" Style="color: red; float: left; line-height: 38px;"></asp:Label>
                    </div>
                </div>                
            </div>
         </div>
                    </div>
                    

                   

</asp:Content>


